import { z } from 'zod';

export const AppointmentSchema = z.object({
  name: z.string().min(2, { message: '姓名至少需要2个字符' }),
  phone: z.string().min(11, { message: '请输入有效的手机号码' }),
  wechat: z.string().optional(),
  email: z.string().email({ message: '请输入有效的邮箱地址' }).optional(),
  appointment_date: z.string(),
  time_slot: z.string(),
  notes: z.string().optional(),
});